-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support --config
#38
Conversation
Will that solve #39? |
No, but if you have an |
I don't know what the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also update the usage in the readme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add some tests for this feature now, or does that have to wait for #16?
I think we need to wait for the e2e tests to be written and then test this uniformly. |
README.md
Outdated
npm init @eslint/config --config eslint | ||
# or (`eslint-config` prefix is optional) | ||
npm init @eslint/config --config eslint-config-eslint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# use `eslint-config-eslint` shared config | |
npm init @eslint/config --config eslint | |
# or (`eslint-config` prefix is optional) | |
npm init @eslint/config --config eslint-config-eslint | |
# use `eslint-config-semistandard` shared config | |
npm init @eslint/config --config semistandard | |
# or (`eslint-config` prefix is optional) | |
npm init @eslint/config --config eslint-config-semistandard |
I think eslint-config-eslint
could be confusing. It might be better to use something like semistandard
for the example?
README.md
Outdated
npm init @eslint/config --config eslint,standard | ||
# or | ||
npm init @eslint/config --config eslint --config standard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to work. I'm getting TypeError: argv.config.split is not a function
because in this case argv.config
is an array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
close #23 #35